
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../static/bootstrap-5.1.3-dist/css/bootstrap.min.css">
    <script type="text/javascript" src="../static/bootstrap-5.1.3-dist/js/bootstrap.min.js"></script>
    <title>用户注册</title>

</head>

<style>
    .register {
        height: 580px;
        width: 650px;
        /*border: #4d4d4d solid 1px;*/
        border-radius: 10px;
        box-shadow: 5px 7px 15px #5d5c5c;
        margin-top: 120px;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 40px;
    }

    .register h1 {
        text-align: center;
    }

    .button {
        text-align: center;
        vertical-align: middle;
        margin-top: 50px;
    }
    .myImg{
        margin-left: 57%;
    }
</style>

<body>

<div class="register">
    <h1>用户注册</h1>

    <form  action="register" method="post" enctype="multipart/form-data">
        <div class="mb-3">
            <label >用户名</label>
            <div >
                <input type="text" name="username" lay-verify="title" autocomplete="off"  class="form-control" placeholder="请输入用户名">
            </div>
        </div>
        <div class="mb-3">
            <label >密码</label>
            <div >
                <input type="password" name="password" autocomplete="off" class="form-control" placeholder="请输入密码">
            </div>
        </div>
        <div class="mb-3">
            <label >用户简介</label>
            <div >
                <input type="text" name="userprofile" lay-verify="title" autocomplete="off" class="form-control" placeholder="请输入个人简介">
            </div>
        </div>
        <div class="mb-3">
            <label>手机</label>
            <div >
                <input type="text" name="phone" lay-verify="title" autocomplete="off" class="form-control" placeholder="请输入手机号">
            </div>
        </div>
        <div class="mb-3">
            <label>上传头像</label>
            <div>
                <input type="file" name="photo" class="form-control" >
            </div>
        </div>
        <div class="button" >
                <button type="submit" class="btn btn-primary btn-lg" style="margin-right: 50px">注 册</button>&nbsp;&nbsp;&nbsp;
                <a type="button" class="btn btn-secondary btn-lg"  href="${pageContext.request.contextPath}/index.jsp" >返 回</a>
        </div>
    </form>

</div>
</body>
</html>
